package com.tmallgo.util.analyse;

import org.apache.poi.ss.usermodel.Cell;

import com.tmallgo.domain.ShelfItem;

public class DisposeSimpleCell implements DisposeCell {

	@Override
	public ShelfItem dispose(Cell cell) {
		if (cell != null) {
			Long pid = (long) cell.getNumericCellValue();
			if (pid != null ) {
				ShelfItem shelf = new ShelfItem();
				shelf.setPid(pid);
				return shelf;
			}
		}
		return null;
	}

}